<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
<#include "comm/meta-base.ftl" />
<#include "comm/meta-layui.ftl" />
    <link rel="stylesheet" href="/static/css/common.css" media="all"/>
    <link rel="stylesheet" href="/static/css/index.css" media="all"/>
</head>
<body>
<div class="header"><@webHeader /></div>
<div class="shadow-box">
    <div class="index">
        <h1>Hello World!</h1>
    </div>
</div>
</body>
<script type="text/javascript" src="/static/js/common.js"></script>
<script>

    $(function () {
        if (isWeiXin()) {
            $('h1').text("Hello WeiXin");
        }
    })

    //判断是否为微信浏览器
    function isWeiXin() {
        var ua = window.navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == 'micromessenger') {
            return true;
        } else {
            return false;
        }
    }
</script>
</html>